require('../../assets/css/index.less');
require('../../assets/fonts/iconfont.css');

require("../../lib/weui/weui.css")
let weui = require("../../lib/weui/weui.js")

require('./countdown.less')

const dom = require('../../utils/dom');
const https = require('../../utils/https');
const local = require('../../utils/local');

import Swiper, { Pagination, Autoplay } from 'swiper';
import 'swiper/swiper-bundle.min.css';
Swiper.use([Pagination, Autoplay])


dom.ready(function () {

    // dom.tMenu('countdown');

    // dom.bMenu('sport');

    let timer = setInterval(() => {
        dom.getEle("#countdown").textContent -= 1;
        if (dom.getEle("#countdown").textContent == 0){
            // 到零时出现go
            dom.getEle("#countdown").innerHTML = "GO"; 
            location.href = "movement.html";
        }
    }, 1000)

})



